import request from '@/utils/httpRequest'
// import qs from 'qs';
// 获取所有vertsion
export function getAllVersion(query) {
  return request({
    url: '/sys/versionNumber/list',
    method: 'get',
    params: query
  })
}

// 获取version详情
export function getUserDetail(query) {
  return request({
    url: '/sys/versionNumber/info/' + query,
    method: 'get'
  })
}

// 添加version
export function addVersion(query) {
  return request({
    url: '/sys/versionNumber/save',
    method: 'post',
    data: request.adornData(query, false)
  })
}

// 删除vrtsion
export function DelUser(query) {
  // var new_data = qs.stringify(query);
  return request({
    url: '/sys/versionNumber/delete',
    method: 'post',
    data: request.adornData(query, false)
  })
}

// 修改version
export function UpdateUser(query) {
  // var new_data = qs.stringify(query);
  return request({
    url: '    /sys/versionNumber/update',
    method: 'post',
    data: request.adornData(query, false)
  })
}
